package controleur;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComboBox;
import javax.swing.JTextField;

import vue.ListInterface;

import modele.Contact;
import modele.SavingThread;

public class SaveListener implements ActionListener {

	private SavingThread saveth;

	public SaveListener(JTextField t1, JTextField t2, JTextField t3,
			JTextField t4, JTextField t5, JTextField t6, JTextField t7,
			JTextField t8, JComboBox cbGroup, ListInterface l) {
		// TODO Auto-generated constructor stub
		saveth = new SavingThread(t1, t2, t3, t4, t5, t6, t7, t8, cbGroup, l);
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		Thread th = new Thread(saveth);
		th.start();
	}
}
